<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">

<link rel="stylesheet" href="bootstrap-4.6.1-dist/css/bootstrap.css">
		<script type="text/javascript" src="bootstrap-4.6.1-dist/js/bootstrap.bundle.js"></script>
		<script type="text/javascript" src="js/jquery-3.6.1.min.js" ></script>
		<script type="text/javascript" src="bootstrap-4.6.1-dist/js/bootstrap.js"></script>
		<link href="icon/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet"/>
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
<title>Insert title here</title>
</head>
<link rel="stylesheet" href="/hospital-system/bootstrap-5.3.0/css/bootstrap.css">
<body>

	<nav class="navbar navbar-expand-lg navbar-dark bg-dark ">
    <a class="navbar-brand" href="#"><i class="bi bi-hospital-fill"></i>欢迎使用医生管理系统</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item">
        <a class="nav-link" href="/hospital-system/jsp/Leave.jsp">请假</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="/hospital-system/doctorSelectReservable">工作日历</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="/hospital-system/doctorSelectBookedPid">代办详情</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="/hospital-system/doctorSelectReportOne">代办报告单</a>
      </li>
      
     
    </ul>
  </div>
     <ul class="navbar-nav justify-content-end">
	<li class="nav-item" style="color: aliceblue;"><i class="bi bi-arrow-up-right-circle-fill"></i></li>
	</ul>
  <form class="form-inline">
     <input type="button" class="btn btn-outline-success my-2 my-sm-0" 
     onclick="cancelSystem()"  value="退出">
  </form>
</nav>

<div class="row">
  <div class="col-sm-6">

<c:forEach items="${showDoctor}" var="doctorShow" >
  <div class="card mb-3 offest-mb-2" style="max-width: 540px;">
  <div class="row no-gutters">
    <div class="col-md-4">
      <img src="/hospital-system/images/doct.jpg" class="card-img" alt="...">
    </div>
    <div class="col-md-8">
      <div class="card-body">
        <h5 class="card-title">${doctorShow.dname}</h5>
        <p class="card-text">${doctorShow.deduct}</p>
        <p class="card-text"><small class="text-muted"></small>${doctorShow.dexpre}</p>
      </div>
    </div>
  </div>
</div>
</c:forEach>
</div>
  <div class="col-sm-6">

      <div class="card-body">
        <div class="card mb-9" style="width:30rem;">
  
  <div class="card-body">
    <h4 class="card-title text-success" >通知公告</h5>
    <p class="card-text"></p>
  </div>
  <ul class="list-group list-group-flush">
    <li class="list-group-item h5">关于西京医院图书馆积极拓展科学化服务</li>
    <li class="list-group-item h6">随着信息技术的飞速发展，医院图书馆在推进医疗，
    教学，科研方面的作用，功能日益突显。我馆以网络数据库为依托，面对海量化的信息数据资源，进行广泛的抽取对比。</li>
    <li class="list-group-item h5">“聪慧行动”---免费人工耳蜗植入项目公告</li>
     <li class="list-group-item h6">项目状况目前我国有听力障碍人群有2780万人，占各类残疾人数的27%，是世
     界听力残障人数最多的国家。本项目陕西内名额为50个，为患者提供人工耳蜗补助费1万元。</li>
   <li class="list-group-item h5">关于西京医院招募神经系统疾病患者的通知</li>
  <li class="list-group-item h6">我院神经内科正在参加一项国家科技部批准的国家精准医疗重点研发项目建立神
  经系统疾病队列的多中心研究,老年痴呆认知障碍和脱髓鞘疾病组，还有部分名额限，你招募最后一批患者。</li>
  
  </ul>
  <div class="card-body">
    <a href="https://xjwww.fmmu.edu.cn/info/1005/2817.htm" class="card-link">图书馆</a>
    <a href="https://xjwww.fmmu.edu.cn/info/1005/1591.htm" class="card-link">人工耳蜗</a>
     <a href="https://xjwww.fmmu.edu.cn/info/1005/1588.htm" class="card-link">招募患者</a>
  </div>
</div>
      </div>
      </div>
      </div>
</body>
<script src="/hospital-system/js/jquery-3.6.1.min.js"></script>
<script>
  /**
   * 退出系统函数
   */
  function cancelSystem() {
    window.location.href='${pageContext.request.contextPath}/cancelSystem';
  }

  /**
   * 检测用户是否登录
   * @type {string}
   */
 var userSeesion='${sessionScope.user}';
 if(userSeesion==null){
   alert("登录信息已失效，即将挑战登录页面，请重新登录！！！")
   location.href="/jsp/doctorRegister.jsp"
 }
</script>


</body>
</html>